<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/14
  Time: 15:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%
        pageContext.setAttribute("APP_PATH", request.getContextPath());
    %>
    <script type="text/javascript" src="${APP_PATH}/static/js/jquery-3.6.0.js"></script>
    <%--        <script type="text/javascript" src="${APP_PATH}/static/js/jquery-1.6.4.min.js"></script>--%>
    <%--        <script type="text/javascript" src="${APP_PATH}/static/js/jquery.min.js"></script>--%>
    <link href="${APP_PATH}/static/bootstrap-3.4.1-dist/css/bootstrap.min.css" rel="stylesheet"/>
    <script src="${APP_PATH}/static/bootstrap-3.4.1-dist/js/bootstrap.js" ></script>
    <meta charset="UTF-8">
    <title>ERP系统 - 后勤人员信息管理</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/main.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/lib/font-awesome/css/font-awesome.css">
</head>
<body>
    <h3>后勤人员信息管理</h3>

    <table class="list">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>身份证号</th>
            <th>手机号</th>
            <th>添加时间</th>
        </tr>
        <c:forEach var="logis" items="${pageInfo1.list}" varStatus="status">
            <tr>
                <td>${logis.loId}</td>
                <td>${logis.loName}</td>
                <td>${logis.loIdcard}</td>
                <td>${logis.loTel}</td>
                <td>${logis.loTime}</td>
            </tr>
        </c:forEach>
    </table>
    <div class="pager-info">
        <div class="col-md-6">
            当前第${pageInfo1.pageNum}页,总共${pageInfo1.pages}页,总共${pageInfo1.total}条记录
        </div>
        <div class="col-md-6">
            <nav aria-label="Page navigation">
                <ul class="pagination">
                    <li><a href="search?pn=1&field=${sessionScope.field}&keyword=${sessionScope.keyword}">首页</a></li>
                    <c:if test="${pageInfo1.hasPreviousPage}">
                        <li>
                            <a href="search?pn=${pageInfo1.pageNum-1}&field=${sessionScope.field}&keyword=${sessionScope.keyword}" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                    </c:if>
                    <c:forEach items="${pageInfo1.navigatepageNums}" var="page_Num">
                        <li <c:if test="${page_Num==pageInfo1.pageNum}">
                            class="active"
                        </c:if>><a href="search?pn=${page_Num}&field=${sessionScope.field}&keyword=${sessionScope.keyword}">${page_Num}</a></li>

                    </c:forEach>
                    <c:if test="${pageInfo1.hasNextPage}">
                        <li>
                            <a href="search?pn=${pageInfo1.pageNum+1}&field=${sessionScope.field}&keyword=${sessionScope.keyword}" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                    </c:if>
                    <li><a href="search?pn=${pageInfo1.pages}&field=${sessionScope.field}&keyword=${sessionScope.keyword}">末页</a></li>
                </ul>
            </nav>
        </div>
    </div>
    <a href="shouye">返回首页</a>
</body>
</html>
